package springlearn.factory;

public class Weapontest {
    public static void main(String[] args) {
        Weapon weapon = WeaponFactory.get("tank");
        Weapon weapon1 = WeaponFactory.get("knife");
        weapon.attack();
        weapon1.attack();
    }
}
